package cn.hfjava.pojo.cn.bdqn;
/*
*、以(OO)面向对象的思想，编写简易的计算器(Calculator)，设定属性包括：左操作数(numberA)、右操作数(numberB)，
* 方法包括：加法(add())、减法(sub())、乘法(mul())、除法(div())
* */
public class Calculator {
    double numberA;
    double numberB;


    //加法
    public String sum(String numberA, String numberB) {
        return numberA + numberB;

    }


    public double sub(double numberA, double numberB) {
        return numberA - numberB;

    }


    public double div(double numberA, double numberB) {
        return numberA / numberB;

    }

    public double mul(double numberA, double numberB) {
        return numberA * numberB;

    }


}